﻿@model KL.Store.Web.Models.ContactUsModel
@using KL.Store.Core;
@using CaptchaMvc.HtmlHelpers;
@using (Ajax.BeginForm("SaveForProduct", "ContactUs", new { }, new AjaxOptions { UpdateTargetId = "urunSoruSor", HttpMethod = "Post", OnSuccess = "questionSuccess", OnFailure = "questionFailure" }, new { id = "productquestionform", name = "productquestionform", @class = "form-horizontal" }))
{
    <input type="hidden" name="Department" value="Satış" />    
    <div class="form-group">
        <label for="Name" class="col-xs-12 col-sm-12 col-md-4 col-lg-4 control-label">Adınız ve Soyadınız <span class="requireStar">*</span> : </label>
        <div class="col-xs-12 col-sm-12 col-md-8 co-lg-8">
            @Html.TextBoxFor(model => model.Name, new { @class = "form-control", @placeHolder = "Ad ve Soyadınızı Yazınız" })@Html.ValidationMessageFor(model => model.Name)
        </div>
    </div>
    <div class="form-group">
        <label for="Email" class="col-xs-12 col-sm-12 col-md-4 col-lg-4 control-label">E-Posta Adresiniz <span class="requireStar">*</span> : </label>
        <div class="col-xs-12 col-sm-12 col-md-8 co-lg-8">
            @Html.TextBoxFor(model => model.Email, new { @class = "form-control", @placeHolder = "E-Posta Adresinizi Yazınız" })@Html.ValidationMessageFor(model => model.Email)
        </div>
    </div>
    <div class="form-group">
        <label for="Phone" class="col-xs-12 col-sm-12 col-md-4 col-lg-4 control-label">Telefon Numaranız <span class="requireStar">*</span> : </label>
        <div class="col-xs-12 col-sm-12 col-md-8 co-lg-8">
            @Html.TextBoxFor(model => model.Phone, new { @class = "form-control", @placeHolder = "Cep Telefonunuzu Yazınız" })@Html.ValidationMessageFor(model => model.Phone)
        </div>
    </div>
    <div class="form-group">
        <label for="City" class="col-xs-12 col-sm-12 col-md-4 col-lg-4 control-label">İl <span class="requireStar">*</span> : </label>
        <div class="col-xs-12 col-sm-12 col-md-8 co-lg-8">
            @Html.DropDownListFor(m => m.City, new SelectList(Model.CityList, "CityId", "CityName"), new { @class = "form-control" })
        </div>
    </div>
    <div class="form-group">
        <label for="Subject" class="col-xs-12 col-sm-12 col-md-4 col-lg-4 control-label">Konu Başlığı <span class="requireStar">*</span> : </label>
        <div class="col-xs-12 col-sm-12 col-md-8 co-lg-8">
            @Html.TextBoxFor(model => model.Subject, new { @class = "form-control", @placeholder = "Konu Başlığını Yazınız", @readonly = "readonly" })@Html.ValidationMessageFor(model => model.Subject)
        </div>
    </div>
    <div class="form-group">
        <label for="Message" class="col-xs-12 col-sm-12 col-md-4 col-lg-4 control-label">Mesajınız <span class="requireStar">*</span> : </label>
        <div class="col-xs-12 col-sm-12 col-md-8 co-lg-8">
            @Html.TextAreaFor(model => model.Message, new { @class = "form-control" })@Html.ValidationMessageFor(model => model.Message)
        </div>
    </div>
    <div class="form-group">
        <label for="CaptchaInputText" class="control-label col-xs-12 col-sm-12 col-md-4 col-lg-4">Doğrulama Kodu<span class="requireStar">*</span> : </label>
        <div class="col-xs-12 col-sm-12 col-md-8 co-lg-8">
            <div class="captcha">
                @Html.Captcha("Yenile", "Doğrulama kodunu giriniz.", 5, "Bu alan zorunludur.")
                <div class="captchaBG">
                </div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-xs-12">
            @Html.ValidationSummary(true, "İletişim formu gönderilemedi. Lütfen eksik bilgileri kontrol ediniz.")
        </div>
    </div>
    <div class="form-group">
        <div class="col-md-offset-4 col-lg-offset-4 col-xs-12 col-sm-12 col-md-8 col-lg-8">
            <input class="btn btn-custom1" type="submit" value="Gönder">
        </div>
    </div>
}
<script>
    function questionSuccess()
    {
    }
    function questionFailure()
    {
    }
</script>
